package com.anda.logistics.service;

import java.text.ParseException;

import org.hibernate.HibernateException;

import com.anda.logistics.util.JQGridJsonData;
import com.anda.logistics.util.JQGridPager;

public interface AndaBaseService {

	public void save(Object entity);

	public void update(Object entity);

	public void deleteAll(Class c, String[] ids);

//	public JQGridJsonData getJQGridJsonData(JQGridPager pager, String tableName,
//			String idName, String[] columns);

	public JQGridJsonData getJQGridJsonData(JQGridPager pager, String idName,
			String[] columns, Class clazz) throws NoSuchFieldException, SecurityException, HibernateException, ParseException;

//	public List<Object> getPagerList(JQGridPager pager, String tableName);
//
//	public long getPagerRecords(JQGridPager pager, String tableName);
	
}
